跳到主要内容

文件移动

请求参数

名称类型是否必填示例值描述
HeadStringmove类型,新建为 "move"
DataStruct-具体请参见下表结构体 MoveReqStruct

结构体 MoveReqStruct

名称类型示例值描述
SourceStringE165B965文件/文件夹id
TargetStringE165B965文件/文件夹id

返回数据

名称类型示例值描述
HeadStringcreate类型,新建为 "move"
DataStruct-具体请参见下表结构体 MoveRespStruct

结构体 MoveRespStruct

名称类型示例值描述
IdStringstat文件id
NameStringtest.yaml文件/文件夹名称
IsDirBooleantrue是否是目录
ParentStruct-具体请参见下表结构体 Parent

结构体 Parent

名称类型示例值描述
IdString456AFAA7文件或者文件夹 id
PathString/home/fengcaiwen/lab/golab文件全路径
IsDirBooleantrue是否是目录

请求示例

{
"Head": "move",
"Data": {
"Source": "7024823",
"Target": "B2C7C071"
}
}

返回示例

{
"Head": "rename",
"Data": {
"Parent": {
"Id": "771F1D91",
"IsDir": true,
"Path": "/home/fengcaiwen/lab/golab"
},
"Id": "7024823",
"Name": "test.yaml",
"Path": "/home/fengcaiwen/lab/golab/test.yaml"
}
}
{
"Head": "create",
"Data": {
"Parent": {
"Id": "B2C7C071",
"IsDir": true,
"Path": "/home/fengcaiwen/lab/golab/hellofolder1"
},
"Id": "68D06A83",
"Name": "test.yaml",
"Path": "/home/fengcaiwen/lab/golab/hellofolder1/test.yaml"
}
}